package org.chaser.tools

import javax.swing._

trait PackageResources {

   def getPackageResource( resourceName: String ): java.net.URL = {
     getClass().getResource( "resource\\" + resourceName )
   }
   
   def getIcon( cls: Class[_], resourceName: String ): Icon = {
     new ImageIcon( getPackageResource(resourceName))
   }
  
}
